summaryrefslogtreecommitdiff
path: root/src/pages/[locale]/submit.astro
blob: df740dc7c4d9595c55fb7e4de39e6d7564670e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
import Page from '$layouts/Page.astro';
import localeStaticPaths from '$lib/localeStaticPaths';
import translate from '$i18n/translate';
import tPage from '$i18n/translations/pages/submit';
import type Locale from '$types/Locale';

export async function getStaticPaths() {
  return localeStaticPaths;
}

const locale = Astro.params.locale as Locale;
const t = translate(locale);
---

<Page title={t(tPage, { key: 'title' })}>
  <section>
    <h2 set:html={t(tPage, { key: 'title' })} />
    <p set:html={t(tPage, { key: 'submit-para-1' })} />
    <p set:html={t(tPage, { key: 'submit-para-2' })} />
  </section>
  <section>
    <h2 set:html={t(tPage, { key: 'copyright-heading' })} />
    <p set:html={t(tPage, { key: 'copyright-body' })} />
  </section>
</Page>